package com.zjmzxfzhl.modules.purchase.controller.dto;

import lombok.Getter;
import lombok.Setter;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.sql.Date;
import java.util.List;

/**
 * 【】实体类
 *
 * @author 庄金明
 */
@Getter
@Setter
public class PurchaseOrderUpdateDto {

    /**
     * ID
     */
    private Long id;

    /**
     * 采购单编号
     */
    @NotBlank(message = "审批编号不能为空")
    private String orderCode;

    @NotNull(message = "审批单日期不能为空")
    private Date orderDate;

    /**
     * 备注
     */
    private String comment;

    @Valid
    private List<PurchaseOrderDetailUpdateDto> details;
}
